﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_TimHangTonKho : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboKho")]
        private ComboBox _CboKho;
        [AccessedThroughProperty("CboNhomHang")]
        private ComboBox _CboNhomHang;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdFind")]
        private Button _CmdFind;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("TxtTimLoHang")]
        private TextBox _TxtTimLoHang;
        [AccessedThroughProperty("TxtTimMa")]
        private TextBox _TxtTimMa;
        [AccessedThroughProperty("TxtTimSoSeri")]
        private TextBox _TxtTimSoSeri;
        [AccessedThroughProperty("TxtTimTen")]
        private TextBox _TxtTimTen;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private string mKhoaKho;
        private string mKhoaLoaiGia;
        private string mNamThang;
        private bool mShowTriGia;
        private string[] mValue;
        private clsXuatKho objHD;
        private DataView pDtview;
        public bool WasLoadData;

        public Frm_TimHangTonKho()
        {
            base.Activated += new EventHandler(this.Frm_TimHangTonKho_Activated);
            base.Load += new EventHandler(this.Frm_TimHangTonKho_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.mKhoaKho = "";
            this.mShowTriGia = true;
            this.mValue = new string[8];
            this.objHD = new clsXuatKho();
            this.mNamThang = "";
            this.mKhoaLoaiGia = "";
            this.WasLoadData = false;
            this.InitializeComponent();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                this.mValue[0] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 0]), "", modGeneral.TypeOfValue.Nothing).ToString();
                this.mValue[1] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 1]), "", modGeneral.TypeOfValue.Nothing).ToString();
                this.mValue[2] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 5]), "", modGeneral.TypeOfValue.Nothing).ToString();
                this.mValue[3] = LVYModule.Date2Char(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 6]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
                this.mValue[4] = LVYModule.Date2Char(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 7]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
                this.mValue[5] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 9]), "", modGeneral.TypeOfValue.Nothing).ToString();
                this.mValue[6] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 10]), "", modGeneral.TypeOfValue.Nothing).ToString();
                this.mValue[7] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Row, 11]), "", modGeneral.TypeOfValue.Nothing).ToString();
                vSlist = null;
                this.Close();
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_TimHangTonKho_Activated(object sender, EventArgs e)
        {
            int num2;
            this.TxtTimMa.Text = "";
            this.TxtTimTen.Text = "";
            this.TxtTimSoSeri.Text = "";
            int index = 0;
            do
            {
                this.mValue[index] = "";
                index++;
                num2 = 7;
            }
            while (index <= num2);
        }

        private void Frm_TimHangTonKho_Load(object sender, EventArgs e)
        {
            if (!this.WasLoadData)
            {
                BuildComboModule.BuildCombo(this.CboKho, modGeneral.ListDanhMuc.KhoHang, false, "", "");
                BuildComboModule.BuildCombo(this.CboNhomHang, modGeneral.ListDanhMuc.NhomHangHoa, false, "", "");
            }
            if (LVYModule.ReturnIfNull(this.mKhoaKho, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.CboKho.SelectedValue = this.mKhoaKho;
                this.CboKho.Enabled = false;
            }
            else
            {
                this.CboKho.Enabled = true;
            }
            if (!this.WasLoadData)
            {
                this.LoadData();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_TimHangTonKho));
            this.CmdFind = new Button();
            this.Label2 = new Label();
            this.CboNhomHang = new ComboBox();
            this.Label1 = new Label();
            this.CboKho = new ComboBox();
            this.GroupBox2 = new GroupBox();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.TxtTimMa = new TextBox();
            this.TxtTimTen = new TextBox();
            this.TxtTimSoSeri = new TextBox();
            this.Panel1 = new Panel();
            this.TxtTimLoHang = new TextBox();
            this.Panel2 = new Panel();
            this.GroupBox2.SuspendLayout();
            this.VSlist.BeginInit();
            this.Panel1.SuspendLayout();
            this.Panel2.SuspendLayout();
            this.SuspendLayout();
            this.CmdFind.BackgroundImage = ACCOUNTING.My.Resources.Resources.view;
            this.CmdFind.BackgroundImageLayout = ImageLayout.Stretch;
            Point point = new Point(0x265, 9);
            this.CmdFind.Location = point;
            this.CmdFind.Name = "CmdFind";
            Size size = new Size(0x18, 0x17);
            this.CmdFind.Size = size;
            this.CmdFind.TabIndex = 4;
            this.CmdFind.UseVisualStyleBackColor = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(0x134, 14);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x3e, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 3;
            this.Label2.Text = "Nh\x00f3m h\x00e0ng";
            this.CboNhomHang.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNhomHang.FormattingEnabled = true;
            point = new Point(0x176, 10);
            this.CboNhomHang.Location = point;
            this.CboNhomHang.Name = "CboNhomHang";
            size = new Size(0xed, 0x15);
            this.CboNhomHang.Size = size;
            this.CboNhomHang.TabIndex = 2;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(0x12, 13);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x35, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "Kho h\x00e0ng";
            this.CboKho.FormattingEnabled = true;
            point = new Point(80, 10);
            this.CboKho.Location = point;
            this.CboKho.Name = "CboKho";
            size = new Size(0xde, 0x15);
            this.CboKho.Size = size;
            this.CboKho.TabIndex = 0;
            this.GroupBox2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.GroupBox2.Controls.Add(this.VSlist);
            this.GroupBox2.Dock = DockStyle.Fill;
            point = new Point(3, 0x27);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x354, 0x20b);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 1;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Danh s\x00e1ch h\x00e0ng tồn kho";
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            point = new Point(3, 0x10);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x34e, 0x1f8);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 8;
            this.VSlist.VisualStyle = VisualStyle.Office2007Blue;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x305, 5);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x49, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 6;
            this.CmdCancel.Text = "Th&o\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x2b3, 5);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4d, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 5;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            point = new Point(5, 7);
            this.TxtTimMa.Location = point;
            this.TxtTimMa.Name = "TxtTimMa";
            size = new Size(90, 20);
            this.TxtTimMa.Size = size;
            this.TxtTimMa.TabIndex = 0;
            point = new Point(0x60, 7);
            this.TxtTimTen.Location = point;
            this.TxtTimTen.Name = "TxtTimTen";
            size = new Size(0xcd, 20);
            this.TxtTimTen.Size = size;
            this.TxtTimTen.TabIndex = 2;
            point = new Point(0x12e, 7);
            this.TxtTimSoSeri.Location = point;
            this.TxtTimSoSeri.Name = "TxtTimSoSeri";
            size = new Size(0x55, 20);
            this.TxtTimSoSeri.Size = size;
            this.TxtTimSoSeri.TabIndex = 3;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdFind);
            this.Panel1.Controls.Add(this.CboNhomHang);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.CboKho);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Dock = DockStyle.Top;
            point = new Point(3, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x354, 0x27);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 10;
            point = new Point(0x185, 7);
            this.TxtTimLoHang.Location = point;
            this.TxtTimLoHang.Name = "TxtTimLoHang";
            size = new Size(0x72, 20);
            this.TxtTimLoHang.Size = size;
            this.TxtTimLoHang.TabIndex = 11;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Controls.Add(this.CmdOK);
            this.Panel2.Controls.Add(this.TxtTimLoHang);
            this.Panel2.Controls.Add(this.CmdCancel);
            this.Panel2.Controls.Add(this.TxtTimMa);
            this.Panel2.Controls.Add(this.TxtTimTen);
            this.Panel2.Controls.Add(this.TxtTimSoSeri);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(3, 0x20e);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x354, 0x24);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 12;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x35a, 0x232);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.Panel2);
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.Panel1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_TimHangTonKho";
            Padding padding = new Padding(3, 0, 3, 0);
            this.Padding = padding;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "HANG HOA TON KHO";
            this.GroupBox2.ResumeLayout(false);
            this.VSlist.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.Panel2.ResumeLayout(false);
            this.Panel2.PerformLayout();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            this.pDtview = new DataView(this.objHD.GetHangHoaTonKho(this.mNamThang, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKho.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhomHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), "", ""));
            this.VSlist.DataSource = this.pDtview;
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            vSlist.Cols[0].Visible = false;
            vSlist.Cols[1].Visible = false;
            vSlist.Cols[2].Width = 80;
            vSlist.Cols[3].Width = 180;
            vSlist.Cols[4].Width = 80;
            vSlist.Cols[5].Width = 80;
            vSlist.Cols[6].Width = 80;
            vSlist.Cols[7].Width = 90;
            vSlist.Cols[8].Width = 70;
            vSlist.Cols[9].Width = 60;
            vSlist.Cols[10].Width = 90;
            vSlist.Cols[11].Visible = false;
            vSlist.Cols[12].Visible = false;
            vSlist[0, 2] = modGeneral.Tranlated("M\x00e3 h\x00e0ng", "");
            vSlist[0, 3] = modGeneral.Tranlated("T\x00ean h\x00e0ng", "");
            vSlist[0, 4] = modGeneral.Tranlated("Số seri", "");
            vSlist[0, 5] = modGeneral.Tranlated("L\x00f4 h\x00e0ng", "");
            vSlist[0, 6] = modGeneral.Tranlated("Ng\x00e0y nhập", "");
            vSlist[0, 7] = modGeneral.Tranlated("Hạn sử dụng", "");
            vSlist[0, 8] = modGeneral.Tranlated("ĐVT", "");
            vSlist[0, 9] = modGeneral.Tranlated("SL tồn", "");
            vSlist[0, 10] = modGeneral.Tranlated("Trị gi\x00e1 tồn", "");
            vSlist[0, 11] = modGeneral.Tranlated("Đơn gi\x00e1", "");
            vSlist[0, 12] = modGeneral.Tranlated("Gi\x00e1 b\x00e1n", "");
            vSlist.Cols[9].Format = modGeneral.H_FORMATNUMBER;
            vSlist.Cols[10].Format = modGeneral.H_FORMATNUMBER;
            vSlist.Cols[11].Format = modGeneral.H_FORMATNUMBER;
            vSlist.Cols[12].Format = modGeneral.H_FORMATNUMBER;
            vSlist.Cols[4].Visible = modGeneral.H_THEODOISERI;
            vSlist.Cols[5].Visible = modGeneral.H_THEODOISOLOHANG;
            if (modGeneral.H_LOAIGIA != "A")
            {
                vSlist.Cols[6].Visible = true;
            }
            else
            {
                vSlist.Cols[6].Visible = false;
            }
            vSlist.Cols[7].Visible = modGeneral.H_THEODOIHANDUNG;
            long num2 = 0L;
            int num3 = this.VSlist.Cols.Count - 1;
            for (int i = 0; i <= num3; i++)
            {
                if ((i != 3) & this.VSlist.Cols[i].Visible)
                {
                    num2 += this.VSlist.Cols[i].Width;
                }
            }
            this.VSlist.Cols[3].Width = this.VSlist.Width - (((int) num2) + SystemInformation.VerticalScrollBarWidth);
            vSlist = null;
        }

        public void SearchHangHoa()
        {
            string text = this.TxtTimMa.Text;
            string str3 = this.TxtTimTen.Text;
            string str4 = this.TxtTimSoSeri.Text;
            string left = "";
            if (text.Trim() != "")
            {
                left = "Ma LIKE '" + text + "%'";
            }
            if (str3.Trim() != "")
            {
                left = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(left, Interaction.IIf(left.Trim() != "", " And HangHoa LIKE '" + str3 + "%'", " HangHoa LIKE '" + str3 + "%'")));
            }
            if (str4.Trim() != "")
            {
                left = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(left, Interaction.IIf(left.Trim() != "", " And SoSeri LIKE '" + str4 + "%'", " SoSeri LIKE '" + str4 + "%'")));
            }
            this.pDtview.RowFilter = left;
            if (this.VSlist.Rows.Count != 1)
            {
                this.VSlist.Select(1, 0, 1, this.VSlist.Cols.Count - 1);
            }
        }

        private void TxtTimMa_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return)
            {
                this.CmdOK_Click(RuntimeHelpers.GetObjectValue(sender), e);
            }
            if (e.KeyCode == Keys.Down)
            {
                if (this.VSlist.Row < (this.VSlist.Rows.Count - 1))
                {
                    this.VSlist.Select(this.VSlist.Row + 1, 1);
                }
                e.SuppressKeyPress = true;
            }
            if (e.KeyCode == Keys.Up)
            {
                if (this.VSlist.Row > 1)
                {
                    this.VSlist.Select(this.VSlist.Row - 1, 1);
                }
                e.SuppressKeyPress = true;
            }
        }

        private void TxtTimMa_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa();
        }

        private void TxtTimSoSeri_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return)
            {
                this.CmdOK_Click(RuntimeHelpers.GetObjectValue(sender), e);
            }
            if (e.KeyCode == Keys.Down)
            {
                if (this.VSlist.Row < (this.VSlist.Rows.Count - 1))
                {
                    this.VSlist.Select(this.VSlist.Row + 1, 1);
                }
                e.SuppressKeyPress = true;
            }
            if (e.KeyCode == Keys.Up)
            {
                if (this.VSlist.Row > 1)
                {
                    this.VSlist.Select(this.VSlist.Row - 1, 1);
                }
                e.SuppressKeyPress = true;
            }
        }

        private void TxtTimSoSeri_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa();
        }

        private void TxtTimTen_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return)
            {
                this.CmdOK_Click(RuntimeHelpers.GetObjectValue(sender), e);
            }
            if (e.KeyCode == Keys.Down)
            {
                if (this.VSlist.Row < (this.VSlist.Rows.Count - 1))
                {
                    this.VSlist.Select(this.VSlist.Row + 1, 1);
                }
                e.SuppressKeyPress = true;
            }
            if (e.KeyCode == Keys.Up)
            {
                if (this.VSlist.Row > 1)
                {
                    this.VSlist.Select(this.VSlist.Row - 1, 1);
                }
                e.SuppressKeyPress = true;
            }
        }

        private void TxtTimTen_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa();
        }

        private void VSlist_Click(object sender, EventArgs e)
        {
        }

        private void VSlist_DoubleClick(object sender, EventArgs e)
        {
            this.CmdOK_Click(RuntimeHelpers.GetObjectValue(sender), e);
        }

        private void VSlist_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return)
            {
                this.CmdOK_Click(RuntimeHelpers.GetObjectValue(sender), e);
            }
        }

        internal virtual ComboBox CboKho
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKho;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKho = value;
            }
        }

        internal virtual ComboBox CboNhomHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhomHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboNhomHang = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdCancel = value;
            }
        }

        internal virtual Button CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        public string KhoaKho
        {
            get
            {
                return this.mKhoaKho;
            }
            set
            {
                this.mKhoaKho = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        public object LoaiGia
        {
            get
            {
                return this.mKhoaLoaiGia;
            }
            set
            {
                this.mKhoaLoaiGia = Conversions.ToString(value);
            }
        }

        public string NamThang
        {
            get
            {
                return this.mNamThang;
            }
            set
            {
                this.mNamThang = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual TextBox TxtTimLoHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimLoHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTimLoHang = value;
            }
        }

        internal virtual TextBox TxtTimMa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimMa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                KeyEventHandler handler = new KeyEventHandler(this.TxtTimMa_KeyDown);
                EventHandler handler2 = new EventHandler(this.TxtTimMa_TextChanged);
                if (this._TxtTimMa != null)
                {
                    this._TxtTimMa.KeyDown -= handler;
                    this._TxtTimMa.TextChanged -= handler2;
                }
                this._TxtTimMa = value;
                if (this._TxtTimMa != null)
                {
                    this._TxtTimMa.KeyDown += handler;
                    this._TxtTimMa.TextChanged += handler2;
                }
            }
        }

        internal virtual TextBox TxtTimSoSeri
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimSoSeri;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTimSoSeri_TextChanged);
                KeyEventHandler handler2 = new KeyEventHandler(this.TxtTimSoSeri_KeyDown);
                if (this._TxtTimSoSeri != null)
                {
                    this._TxtTimSoSeri.TextChanged -= handler;
                    this._TxtTimSoSeri.KeyDown -= handler2;
                }
                this._TxtTimSoSeri = value;
                if (this._TxtTimSoSeri != null)
                {
                    this._TxtTimSoSeri.TextChanged += handler;
                    this._TxtTimSoSeri.KeyDown += handler2;
                }
            }
        }

        internal virtual TextBox TxtTimTen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimTen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                KeyEventHandler handler = new KeyEventHandler(this.TxtTimTen_KeyDown);
                EventHandler handler2 = new EventHandler(this.TxtTimTen_TextChanged);
                if (this._TxtTimTen != null)
                {
                    this._TxtTimTen.KeyDown -= handler;
                    this._TxtTimTen.TextChanged -= handler2;
                }
                this._TxtTimTen = value;
                if (this._TxtTimTen != null)
                {
                    this._TxtTimTen.KeyDown += handler;
                    this._TxtTimTen.TextChanged += handler2;
                }
            }
        }

        public string[] ValueReturn
        {
            get
            {
                return this.mValue;
            }
            set
            {
                this.mValue = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                KeyEventHandler handler = new KeyEventHandler(this.VSlist_KeyDown);
                EventHandler handler2 = new EventHandler(this.VSlist_DoubleClick);
                EventHandler handler3 = new EventHandler(this.VSlist_Click);
                if (this._VSlist != null)
                {
                    this._VSlist.KeyDown -= handler;
                    this._VSlist.DoubleClick -= handler2;
                    this._VSlist.Click -= handler3;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.KeyDown += handler;
                    this._VSlist.DoubleClick += handler2;
                    this._VSlist.Click += handler3;
                }
            }
        }
    }
}

